package com.pzb.goods.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.pzb.common.annotation.Excel;
import com.pzb.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 运费模板对象 gd_freight_template
 * 
 * @author Mr_Wu
 * @date 2021-12-06
 */
public class GdFreightTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 商户id */
    @Excel(name = "商户id")
    private String extAppid;

    /** 模板名称 */
    private String templateName;

    /** 包邮 */
    List<String> freeCityList;
    /** 非包邮地区 */
    List<GdFreightTemplateData> templateDataList;

    /** 模板类型 0按件计费 1按重量计费 */
    private String templateType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setExtAppid(String extAppid) 
    {
        this.extAppid = extAppid;
    }

    public String getExtAppid() 
    {
        return extAppid;
    }
    public void setTemplateName(String templateName) 
    {
        this.templateName = templateName;
    }

    public String getTemplateName() 
    {
        return templateName;
    }
    public void setTemplateType(String templateType) 
    {
        this.templateType = templateType;
    }

    public String getTemplateType() 
    {
        return templateType;
    }

    public List<String> getFreeCityList() {
        return freeCityList;
    }

    public void setFreeCityList(List<String> freeCityList) {
        this.freeCityList = freeCityList;
    }

    public List<GdFreightTemplateData> getTemplateDataList() {
        return templateDataList;
    }

    public void setTemplateDataList(List<GdFreightTemplateData> templateDataList) {
        this.templateDataList = templateDataList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("extAppid", getExtAppid())
            .append("templateName", getTemplateName())
            .append("templateType", getTemplateType())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
